<?php

namespace App\Admin\Repositories;

use App\Models\Product as Model;
use Dcat\Admin\Form\Field\Date;
use Dcat\Admin\Grid;
use Dcat\Admin\Repositories\EloquentRepository;
use Dcat\Admin\Repositories\QueryBuilderRepository;

class Product extends QueryBuilderRepository
{
    var int $int_key = 123;
    public function get(Grid\Model $model): array
    {
        \Log::info($this->int_key);
        // 获取外部传递的参数
//        $tr = Model::query()->where('id','=',$this->id)->value('bom');
        $test = [['sap_number'=>'12'],['sap_number'=>'123']];
        return $test;

    }
}
